<template>
  <div>
    <img src="../assets/404.png" alt="" />
    <div class="goHome" @click="goHome">返回首页</div>
  </div>
</template>

<script>
export default {
  // eslint-disable-next-line vue/multi-word-component-names
  name: "page404",
  methods: {
    goHome() {
        console.log("111")
      this.$router.push("/");
    },
  },
};
</script>

<style lang="less" scoped>
img {
  width: 100%;
  height: 100%;
}
.goHome{
    position: absolute;
    top: 75%;
    left: 45%;
    font-size: 17px;
    color: blue;
}
</style>